<?php
$dirname = dirname(__FILE__);
define('APP_DIR', $dirname . '/APP');
define('NO_LEGACY_FLEAPHP', true);
$configFilename = 'FLEA/_Shared/DSN.php';
require('FLEA/FLEA.php');


$appInf = array(
    'view' => 'FLEA_View_Smarty',
    'viewConfig' => array(
        'smartyDir'         => realpath($dirname . '/Smarty'),
        'template_dir'      => $dirname . '/templates',
        'compile_dir'       => $dirname . '/templates_c',
    ),
);
FLEA::loadAppInf($appInf);
FLEA::loadAppInf($configFilename);
FLEA::import(APP_DIR);
FLEA::runMVC();
